Crate zookeeper_derive

Source

Derive Macrosยง

  • Emit an std::convert::From<i32> implementation for an enum type. When converting from an i32 that does not have an enumeration value, the system will panic, unless a fallback enumeration symbol is specified with #[EnumConvertFromIntFallback = "Identifier"].
  • Emit an std::fmt::Display implementation for an enum type.
  • Emit an std::error::Error implementation for an enum type. This is most useful in conjunction with Debug and EnumDisplay.